/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package local;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;
import model.Attempt;

/**
 *
 * @author Ken
 */
@Local
public interface AttemptFacadeLocal {

    public void create(Attempt a);

    public void edit(Attempt a);

    public void refresh(Attempt a);

    public void updateAttempt(Long attempt_id, String status);

    public ArrayList<Attempt> getAttempts(Long industry, String status);
    
    public int getTotalResponse(Date exp_date_1, Date exp_date_2, String industryID);

    public int getTotalCompletedResponse(Date exp_date_1, Date exp_date_2, String industryID);
    
    public int getTotalAcceptedResponse(Date exp_date_1, Date exp_date_2, String industryID);
    
    public List<Attempt> getTotalAcceptedResponseList(Date exp_date_1, Date exp_date_2, String industryID);
    
    public List<Attempt> getTotalCompletedResponseList(Date exp_date_1, Date exp_date_2, String industryID);
    
    public List<Attempt> getTotalResponseList(Date exp_date_1, Date exp_date_2, String industryID);

    public void deleteAttempt(Long attempt_id);

    public Attempt getAttempt(Long attempt_id);

    public model.Attempt getAttemptByLink(java.lang.String link);
}
